projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ec60b9
)
altera_timer: change ioremap to map_physmem
author
Thomas Chou
<
[email protected]
>
Sat, 14 Nov 2015 03:15:31 +0000
(11:15 +0800)
committer
Thomas Chou
<
[email protected]
>
Wed, 18 Nov 2015 13:18:30 +0000
(21:18 +0800)
Change ioremap() to map_physmem(), as it is more used in u-boot.
Signed-off-by: Thomas Chou <
[email protected]
>
Reviewed-by: Marek Vasut <
[email protected]
>
drivers/timer/altera_timer.c
patch
|
blob
|
history
diff --git
a/drivers/timer/altera_timer.c
b/drivers/timer/altera_timer.c
index 46a598ae9fcf01c95e8f6914630f773b5056321e..971ed38b6b4f84683e0062df20f7bc7734ff7b9d 100644
(file)
--- a/
drivers/timer/altera_timer.c
+++ b/
drivers/timer/altera_timer.c
@@
-75,8
+75,9
@@
static int altera_timer_ofdata_to_platdata(struct udevice *dev)
{
struct altera_timer_platdata *plat = dev_get_platdata(dev);
- plat->regs = ioremap(dev_get_addr(dev),
- sizeof(struct altera_timer_regs));
+ plat->regs = map_physmem(dev_get_addr(dev),
+ sizeof(struct altera_timer_regs),
+ MAP_NOCACHE);
plat->clock_rate = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
"clock-frequency", 0);